#include "..\..\Header\Platform\fwPlatformFactory.h"
#include "..\..\Header\Platform\fwWindowsOpenGLES.h"
#include "..\..\Header\Platform\fwAndroid.h"

PlatformContext * PlatformFactory::CreatePlatform(PlatformID id, char * szTitle, int iFlags)
{
	PlatformContext* platform = NULL;
	switch (id)
	{
	case PlatformID::Android:
		platform = new AndroidOpenGLESv2(szTitle, iFlags);
		break;
	case PlatformID::WindowsWithGLESv2:
		platform = new WindowsOpenGLESv2(szTitle, iFlags);
		break;
	default:
		break;
	}
	return platform;
}